home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / NPP.PAK / COMBOBAR.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  53 lines

  1. // combobar.h : interface of the CTBComboBox and CComboToolBar class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. //
  13.  
  14. class CNotepadView; // forward declaration
  15.  
  16. class CTBComboBox : public CComboBox
  17. {
  18. // Attributes
  19. protected:
  20.     CFont m_font;
  21.  
  22. // Implementation
  23. protected:
  24.     static int CALLBACK FontEnumProc(const LOGFONT *pLogFont, 
  25.                                      const TEXTMETRIC *pTextMetric,
  26.                                      DWORD type, LPARAM pDestLogFont);
  27.     // Generated message map functions
  28.     //{{AFX_MSG(CTBComboBox)
  29.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  30.     //}}AFX_MSG
  31.     DECLARE_MESSAGE_MAP()
  32. };
  33.  
  34. class CComboToolBar : public CToolBar
  35. {
  36. // Attributes
  37. public:
  38.     CTBComboBox m_toolBarCombo;
  39.  
  40. // Implementation
  41. public:
  42.     CNotepadView* GetView();
  43.     virtual BOOL PreTranslateMessage(MSG* pMsg);
  44.  
  45. protected:
  46.     // Generated message map functions
  47.     //{{AFX_MSG(CComboToolBar)
  48.     //}}AFX_MSG
  49.     afx_msg void OnSelectEndOk();
  50.     afx_msg void OnSetFocus();
  51.     DECLARE_MESSAGE_MAP()
  52. };
  53.